package com.wf.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 
 * @TableName contract_info
 */
@TableName(value ="contract_info")
@Data
public class ContractInfo implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 4161201227297304852L;
    /**
     * 合同id
     */
    @TableId(type = IdType.AUTO)
    private Integer contractId;

    /**
     * 房屋id
     */
    private Long houseId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 企业id
     */
    private Integer enterId;

    /**
     * 合同编号
     */
    private String contractNumber;

    /**
     * 租金
     */
   @TableField("contract_money")
    private Double price;

    /**
     * 租金方案
     */
    private String contractType;

    /**
     * 合同模版
     */
    private String contractStencil;

    /**
     * 状态(0=待签约，1=已签约，2=已终止)
     */
    private Integer status;
    /**
     * 日浏览量
     */
    private Long viewDay;
    /**
     * 总浏览量
     */
    private Long viewAll;
    /**
     * 收藏量
     */
    private  Long collectCount;
    /**
     * 开始时间
     */
    private LocalDate startTime;

    /**
     * 结束时间
     */
    private LocalDate endTime;

    /**
     * 创建日期
     */

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createDate;
    /**
     * 更新日期
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateDate;
    /**
     * 是否删除
     */
    @TableLogic
    private Integer isDelete;
    @TableField(exist = false)
    private HousesInfo housesInfo;
    @TableField(exist = false)
    private ApartmentInfo apartmentInfo;
    @TableField(exist = false)
    private User user;


}